﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Expressing_Label
{
    public partial class PromptFrm : Form
    {
        private double c_dOpacity = 0.3;
        public PromptFrm(string s)
        {
            InitializeComponent();
            lblToShow.Text = s;
        }

        private void PromptFrm_Load(object sender, EventArgs e)
        {
            timOpacity.Start();
        }

        private void timOpacity_Tick(object sender, EventArgs e)
        {
            if (c_dOpacity < 0.99)
                c_dOpacity += 0.01;
            else
            {
                this.Close();
            }
            this.Opacity = c_dOpacity;
        }
    }
}
